package com.ebupt.migu.music.schedule.controller;


import com.ebupt.migu.music.schedule.KafkaDataTask;
import com.ebupt.migu.music.schedule.MutualArkTask;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/schedule")
public class scheduleStartController {

    @Autowired
    private MutualArkTask mutualArkTask;

    @Autowired
    private KafkaDataTask kafkaDataTask;


    /**
     * 开启方舟客群导入服务器定时任务
     */
    @GetMapping("/startMutualArkTask")
    public void startMutualArkTask(){
        mutualArkTask.importUserGroupInfo();
    }

    @GetMapping("/popupMinDataTask")
    public void popupMinDataTask(){
        kafkaDataTask.popupMinDataRealtime();
    }
}
